export  default {
    dataList:[],
    subscribe(cb) {
        this.dataList.push(cb)
        console.log(cb)
    },
    publish(value) {
        this.dataList.forEach(cb => cb(value))
    }
}